# Picka usage, by Anthony Long.
from selenium import selenium
import unittest
from Picka import *
SERVER_SETUP = ["localhost", 4444, "*firefox", "http://google.com/"]

class TestCase(unittest.TestCase):        
    def setUp(self):
        """
        setUp runs before anything else.
        """
        self.verificationErrors = []
        self.selenium = selenium(*SERVER_SETUP)
        self.selenium.start()
    
    def tearDown(self):
        """
        tearDowns runs after your tests have finished.
        """
        self.selenium.stop()
    
    def test_firstname(self):
        """
        test_firstname will type in to google's search box.
        """
        self.selenium.open("/")
        n = Name()
        self.selenium.type("q", n.picka_random_string(10))
    

if __name__ == "__main__":
    unittest.main()